
var fs = require('fs');
var path = require('path');
/*路由*/
const router = require('koa-router')();
/*接口服务*/
const util = require('../utilitys');
/*配置属性*/
const designFolderService = require('../service/designFolderApi');

// 从数据库获取design文件夹列表
router.get(`/getCurrentFolder`, designFolderService.getCurrentFolder);
// 新增一个文件夹
router.get(`/addOneFolder`, designFolderService.addOneFolder);
// 修改当前文件夹的顺序
router.get(`/changeOneOrder`, designFolderService.changeOneOrder);
// 删除一个文件夹
router.get(`/deleteOneFolder`, designFolderService.deleteOneFolder);
// 重命名一个文件夹
router.get(`/renameOneFolder`, designFolderService.renameOneFolder);

module.exports = router;
